﻿using System;
using System.Collections.Generic;
using System.Text;
using MeTalker.DAL;
using MeTalker.Model;
using System.Data;

namespace MeTalker.BLL
{
    public class UsersBLL
    {
        public static DataTable GetUser(string userName)
        {
            return UsersDAL.GetUser(userName);
        }

        public static UsersMod GetUserByIdToMod(int id)
        {
            return UsersDAL.GetUserByIdToMod(id);
        }
        public static DataTable GetUserById(int id)
        {
            return UsersDAL.GetUserById(id);
        }
        public static UsersMod SignUser(UsersMod user)
        {
            return UsersDAL.SignUser(user);
        }

        public static DataTable GetUsers() {
            return UsersDAL.GetUsers();
        }

        public static int Update(UsersMod user)
        {
            return UsersDAL.Update(user);
        }

        public static int Insert(UsersMod user)
        {
            return UsersDAL.Insert(user);
        }

        public static int Delete(UsersMod user)
        {
            return UsersDAL.Delete(user);
        }
        public static int Delete(int autoid)
        {
            return UsersDAL.Delete(autoid);
        }
        public static List<UsersMod> GetUsersToList()
        {
            return UsersDAL.GetUsersToList(); 
        }
    }
}